#ifndef __UART_CMD_H
#define __UART_CMD_H

#include "stdint.h"
#include "stdio.h"

#define UART_CMD_EVENT_RX2 (0x01 << 0)

typedef void (* listenCallback)(uint8_t *array, uint16_t len);
typedef void (* onBaudrateChange)(void);

void UartCmdInit(void);
void UartCmdRegisterCallback(listenCallback cb);
void UartCmdRegisterBaudrateChangeCb(onBaudrateChange cb);
void UartCmdCreateListener(uint8_t priority);

#endif
